<form [formGroup]="projectForm">
  <nz-form-item>
    <nz-form-label nzRequired nzFor="projectName">企业名称</nz-form-label>
    <nz-form-control>
      <input nz-input formControlName="projectName" id="projectName" placeholder="输入企业名称" autocomplete="off"/>
      <nz-form-explain *ngIf="!(projectForm.get('projectName').valid || projectForm.get('projectName').untouched)">
        <span class="text-danger" *ngIf="projectForm.get('projectName').hasError('required')">
          带*项不能为空!
        </span>
      </nz-form-explain>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label nzFor="" nzRequired>版本</nz-form-label>
    <nz-form-control>
      <input type="text" nz-input nzSize="default" formControlName="version" placeholder="请输入版本号">
      <nz-form-explain *ngIf="!(projectForm.get('version').valid || projectForm.get('version').untouched)">
        <span class="text-danger" *ngIf="projectForm.get('version').hasError('required')">带*项不能为空!</span>
      </nz-form-explain>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label nzFor="">描述</nz-form-label>
    <nz-form-control>
      <textarea rows="4" nz-input formControlName="description"></textarea>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-control class="modal-footer">
      <button nz-button nzType="primary" class="modal-footer-btn" (click)="addproject()">确&nbsp;&nbsp;&nbsp;&nbsp;定</button>
      <button nz-button nzType="default" class="modal-footer-btn" nzGhost (click)="destroyModal()">取&nbsp;&nbsp;&nbsp;&nbsp;消</button>
    </nz-form-control>
  </nz-form-item>
</form>